#ifndef ADC_drv_H
#define ADC_drv_H

#define SPI_PORTX PORTB
#define SPI_DDRX DDRB


#define PORT_D PORTD
#define DDR_D DDRD
#define SPI_PIND PIND


#define SPI_MOSI 5
#define SPI_MISO 6 
#define SPI_SCK 7
#define SPI_SS 4
#define SPI_CS_DP1 2
#define SPI_CS_DP2 3 
#define SPI_CS_ADC 1

#define RXD 0
#define TXD 1 
#define ADC_BUSSY 3

//Prototypes
void ADC_Init(void);
void ADC_SelfCalibr(void);
unsigned int ADC_inout(unsigned int ctrl);



#endif